/**
 * @author ZhouWeiBo
 * @create 2022/6/7
 */
public class People implements Prototype<People>{
    private String name;
    private String sex;
    private Integer age;

    public People(String name, String sex, Integer age) {
        this.name = "Name:" + name;
        this.sex = "Sex:" + sex;
        this.age = age;
    }

    public People(People people) {
        this.name = people.name;
        this.age = people.age;
        this.sex = people.sex;
    }

    @Override
    public String toString() {
        return "People{" +
                "name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                '}';
    }

    @Override
    public People prototype() {
        return new People(this);
    }
}
